package cn.wolfocde.wolf2w.repository;

import cn.wolfocde.wolf2w.domain.UserInfo;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface UserInfoRepository extends MongoRepository<UserInfo,String> {//<domain实体类,id的类型>
//手机号是唯一的,所以只查询到一个账号(用户对象)
    UserInfo findByPhone(String phone);
}
